import router from './router/index'
import { cookieGet } from './storageCookie'

router.beforeEach(function (to, form, next) {
  var Authorization = cookieGet('tsgfAuthorization')
  var auth = to.query.auth ? to.query.auth : cookieGet('auth')
  if (Authorization || auth) {
     next()
  }

})



